import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useUserMsgStore = defineStore('userMsg', () => {
    const name = ref('')
    const token = ref('')
    function setUserInfo(val1: string, val2: string) {
        name.value = val1
        token.value = val2
    }
    return { name, token, setUserInfo }
}, { persist: true })